const is = (arg: any) => Object.prototype.toString.call(arg)

export const isArray = (arg: any) => is(arg) === '[object Array]'

export const isString = (arg: any) => is(arg) === '[object String]'

export const isObject = (arg: any) => is(arg) === '[object Object]'

export const isNumber = (arg: any) => is(arg) === '[object Number]'

export const isFunction = (arg: any) => is(arg) === '[object Function]'
